/*Author:S.Genikhov
Creatin Date:
Last modified:11/Sept/2010
Reviewed by :

Version 4 with possiblitiest to : Login,get,Bye and simple Security check.
And implementatio of bitfield.
Support only TCP connection.

Short project description:
Bases reallisation of FTP server command like : cd ,send recieve file and commands,
by using of state machine*/
#ifndef __FTPSERVER__
#define __FTPSERVER__


#define     USERNAMESIZE    (20)

typedef  struct FTPserver_t FTPServ;
/*to load the list of existed users the 'login' file contais the username password pair has to be supplyed as argument.
The second argument is the server port.
Exampele:
To run from command line the executable: './ftpserver login 9876'
WHere is 'login' is the name of txt document contains the user && password information as it shown in example:

user     pass
----------------------------------
serj    abcd
dani    lpds

The user name and password has not to exeed the  USERNAMESIZE. File has to be placed in same directory with executable.
The second argument 9876 is the server ports*/

FTPServ* FTPServerNew(char* _filelogin, int _port);

/*Turns On Sever.
Return 0  if o.k. and err_Gsv if fails*/
int    FTPServerRun(FTPServ* _this);





#endif /* __FTPSERVER__*/
